home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libnss3-1d.postinst < prev    next >
Text File  |  2009-08-24  |  686b  |  29 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. migratious_files="libssl3.so libsmime3.so libnssutil3.so libnss3.so"
  6.  
  7. if [ "$1" = "configure" ]; then
  8.  
  9.     for f in $migratious_files; do
  10.         # before new binaries get installed, we move the links
  11.         rm -f /usr/lib/XNOLDCONFIG_$f.new-migration
  12.         rm -f /usr/lib/XNOLDCONFIG_$f.1d.new-migration
  13.     done
  14. fi
  15.  
  16. if [ "$1" = "abort-upgrade" ]; then
  17.     for f in $migratious_files; do
  18.         if [ -e "/usr/lib/XNOLDCONFIG_$f.old-migration" ]; then
  19.             rm -f /usr/lib/$f
  20.             mv /usr/lib/XNOLDCONFIG_$f.old-migration /usr/lib/$f
  21.         fi
  22.         if [ -L "/usr/lib/XNOLDCONFIG_$f.1d.old-migration" ]; then
  23.             rm -f /usr/lib/$f.1d
  24.             mv /usr/lib/XNOLDCONFIG_$f.1d.old-migration /usr/lib/$f.1d
  25.         fi
  26.     done
  27. fi
  28.  
  29.